/**
 * Project: Utilities <br>
 * Package: org.leumasjaffe.mathematics.probability
 */
package org.leumasjaffe.math.probability;

import java.util.Random;

import org.eclipse.jdt.annotation.NonNullByDefault;

/**
 * Class org.leumasjaffe.mathematics.probability.DiscreteRV in file DiscreteRV.java <br>
 * 
 * @author leumasjaffe
 * @version Jun 18, 2013
 * Created on: Jun 18, 2013
 * 
 */
@NonNullByDefault
public abstract class DiscreteRV extends AbstractRV {
	
	protected DiscreteRV() {
		
	}
	
	protected DiscreteRV(Random rand) {
		super(rand);
	}
	
	@Override
	public final double getP(double x) {
		return getF((int) x);
	}
	
	public abstract double getP(int x);

	
	@Override
	public final double getF(double d) {
		return getF((int) d);
	}
	
	public abstract double getF(int d);
	
}
